package com.liyu.iblog.dao;

import java.util.List;

import com.liyu.iblog.domain.Blog;

public interface BlogDao extends GenericDao<Blog> {
    
    public void persistBlogConsistently(Blog blog);
    
    public List<Blog> getBlogsWithTimeDescOrder(int firstIndex, int batchSize, Object fkey);
    
    public Blog getBlogWithComments(Object key); 
    
    public List<Blog> getBlogsByCategory(Object categoryId, int firstIndex, int batchSize);

    public List<Blog> getBlogByTag(String tagId, int firstIndex, int batchSize );
}
